import 'package:freedom/page/mahjong/common/mahjong_context.dart';
import 'package:freedom/page/mahjong/common/message_content.dart';
import 'package:freedom/page/mahjong/message/abstract_action_message.dart';

class OfflineAction extends AbstractMessageActionHandler<MahjongMessage> {
  @override
  void doMessage(MahjongMessage message) {
    var userState = MahjongContext.getUserStateById(message.exeActionUid);
    if (userState == null) {
      return;
    }
    userState.head.updateOnline(false);
  }
}
